package com.cms.doc.service;

import com.cms.doc.model.DocText;
import com.jframe.sys.orm.service.BaseService;
import com.jframe.sys.orm.utils.ResultSet;

public interface DocTextService extends BaseService<DocText> {

	/**
	 * 文档置顶
	 * @author l2iu
	 * @param id
	 * @param isTop
	 * @return
	 */
	public boolean toTop(int id,String isTop);
	
	/**
	 * 设置文档状态
	 * @author l2iu
	 * @param ids
	 * @param status
	 * @return
	 */
	public boolean setStatus(String ids,String status);
	
	/**
	 * 根据文档编号组（ids）分页查询已发布文档
	 * @author l2iu
	 * @param ids
	 * @param start
	 * @param limit
	 * @return
	 */
	public ResultSet<DocText> findListByTypeIds(String ids,int start,int limit);
	
	/**
	 * 根据文档编号（id）读取已发布文档
	 * @author l2iu
	 * @param id
	 * @return
	 */
	public DocText readDocText(String id);
}
